import http from "@/utils/http";

// 登录
export function loginAPI(data) {
  return http({
    url: "/sys/login",
    method: "POST",
    data,
  });
}
// 获取用户资料export function loginAPI(data){
export function userInfoAPI() {
  return http({
    url: "/sys/profile",
    method: "POST",
  });
}
// 获取用户头像
export function getUserImgAPI(id) {
  return http({
    url:`/sys/user/${id}`,
  });
}
